home *** CD-ROM | disk | FTP | other *** search
/ Core Concepts in Art 2 / Core Concepts in Art (Frames of Reference)(The McGraw-Hill Companies)(2004).iso / mac / media / quiz.swf / scripts / DefineButton2_17 / BUTTONCONDACTION on(release).as next >
Text File  |  2003-10-12  |  765b  |  26 lines

  1. on(release){
  2.    if(_parent.retest != 1)
  3.    {
  4.       if(retest_mc.xMark_mc._visible == 1)
  5.       {
  6.          if(_parent["incorrectChapt" + _parent.theChapter] == undefined)
  7.          {
  8.             _parent["incorrectChapt" + _parent.theChapter] = new Array();
  9.          }
  10.          _parent["incorrectChapt" + _parent.theChapter].push(_parent["chapt" + _parent.theChapter][0]);
  11.       }
  12.       _parent["chapt" + _parent.theChapter].splice(0,1);
  13.       next_btn._visible = 0;
  14.    }
  15.    else
  16.    {
  17.       _parent["chapt" + _parent.theChapter].splice(0,1);
  18.       if(_parent["chapt" + _parent.theChapter].length == 0)
  19.       {
  20.          _parent.quizArray.splice(0,1);
  21.          _parent.theChapter = _parent.quizArray[0];
  22.       }
  23.    }
  24.    _parent.nextQuestion();
  25. }
  26.